import 'package:json_annotation/json_annotation.dart';
part 'submit_feedback_api.g.dart';

@JsonSerializable(includeIfNull: false)
class RequestSubmitFeedbackApi {
  final String? workOrderType;
  final String title;
  final String source;
  final String appVersion;
  final String? errorLogOssId;
  final String? deviceId;
  final String? model;
  final String? contactInfo;
  final String ossIds;
  final String videoOssIds;
  
  factory RequestSubmitFeedbackApi.fromJson(Map<String, dynamic> json) =>
      _$RequestSubmitFeedbackApiFromJson(json);

  RequestSubmitFeedbackApi({
    this.workOrderType,
    required this.title,
    this.deviceId,
    this.model,
    this.contactInfo,
    required this.ossIds,
    required this.videoOssIds,
    this.errorLogOssId,
    this.source = "app_ios",
    this.appVersion = "2.0.0",
  });

  Map<String, dynamic> toJson() => _$RequestSubmitFeedbackApiToJson(this);
}
